package cn.stevenyang.services;

public class NumberService {
    public Number get(String x) {
        if (x.contains(".")) {
            return Double.parseDouble(x);
        }
        return Integer.parseInt(x);
    }
}
